home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Mac Game Programming Gurus / TricksOfTheMacGameProgrammingGurus.iso / More Source / C⁄C++ / AsychSound / README < prev   
Internet Message Format  |  1994-11-09  |  861b

  1. From: maller@crl.com (Steve Maller)
  2. Subject: Ascynch sound source code
  3. Date: Sat, 05 Nov 1994 09:24:03 -0800
  4.  
  5. In article <bhorling-3110941518420001@bhorling.mac.trincoll.edu>,
  6. bhorling@trincoll.edu (Bryan Horling) wrote:
  7.  
  8. > Does anyone have any source code that demonstrates how to implement simple
  9. > asynchronous sounds?  C/C++ preferred but I'll take anything.
  10.  
  11. Here's a function that, passed a FSSpec to a sound file (like those the
  12. Finder can play, opens it and plays the sound in it asynchrously. It uses
  13. the partial resource reading routine so that it can read the handle into
  14. temporary memory instead of having the program's application heap take the
  15. hit. Seems cleaner to me.
  16.  
  17. This is part of a program I use all the time. Normal disclaimers apply.
  18.  
  19. -- 
  20. Steve Maller
  21. Husband and Father
  22. maller@crl.com
  23. Steve_Maller@attpls.net (AT&T PersonaLink Services)
  24.